<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="/dacan/Public/Admin/css/base.css" />
    <link rel="stylesheet" href="/dacan/Public/Admin/css/info-mgt.css" />
    <link rel="stylesheet" href="/dacan/Public/Admin/css/WdatePicker.css" />
    <script>
        function fuc(){
            var ss=document.getElementById("scc");
            ss.innerHTML="";
        }



    </script>

    <title>东莞大仓机械后台管理</title>
</head>

<body>
<div class="title"><h2>信息管理</h2></div>
<div class="table-operate ue-clear">
    <a href="addtype" class="add">添加</a>
    <a href="" class="del">删除</a>
    <a href="" class="edit">编辑</a>
</div>
<div class="table-box">
    <table>
        <thead>
        <tr>
            <th class="num">新闻编号</th>
            <th class="num">新闻题目</th>
            <th class="num">新闻内容</th>
            <th class="num">新闻时间</th>
            <th class="num">作者</th>
            <th class="num">关键字</th>
            <th class="num">操作</th>
        </tr>
        </thead>
        <tbody>

  <?php if(is_array($kl)): $i = 0; $__LIST__ = $kl;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$kk): $mod = ($i % 2 );++$i;?><tr>
          <td class="num"><?php echo ($kk["nid"]); ?></td>
          <td class="num"><?php echo ($kk["newstitle"]); ?></td>
          <td class="num"><?php echo (htmlspecialchars_decode($kk["newscontent"])); ?></td>
          <td class="num"><?php echo ($kk["newsdate"]); ?></td>
          <td class="num"><?php echo ($kk["author"]); ?></td>
          <td class="num"><?php echo ($kk["keywords"]); ?></td>
          <td class="num">
              <a href="getonenew?nid=<?php echo ($kk["nid"]); ?>">修改</a>
              <a onclick="fuc()"  href="deletnews?nid=<?php echo ($kk["nid"]); ?>" >删除</a>
          </td>
      </tr><?php endforeach; endif; else: echo "" ;endif; ?>



        </tbody>
    </table>
</div>
<!--<div class="pagination ue-clear"></div>-->
<div class="pagelist">

</div>

</body>
<script type="text/javascript" src="/dacan/Public/Admin/js/jquery.js"></script>
<script type="text/javascript" src="/dacan/Public/Admin/js/common.js"></script>
<script type="text/javascript" src="/dacan/Public/Admin/js/WdatePicker.js"></script>
<script type="text/javascript" src="/dacan/Public/Admin/js/jquery.pagination.js"></script>
<script type="text/javascript">
    $(".select-title").on("click",function(){
        $(".select-list").hide();
        $(this).siblings($(".select-list")).show();
        return false;
    })
    $(".select-list").on("click","li",function(){
        var txt = $(this).text();
        $(this).parent($(".select-list")).siblings($(".select-title")).find("span").text(txt);
    })

    $('.pagination').pagination(100,{
        callback: function(page){
            alert(page);
        },
        display_msg: true,
        setPageNo: true
    });

    $("tbody").find("tr:odd").css("backgroundColor","#eff6fa");

    showRemind('input[type=text], textarea','placeholder');


</script>
</html>